package io.wdb.modules.activity.wxapp.entity;

import java.io.Serializable;
import java.util.Date;



/**
 * 微信用户信息
 * 
 * @author wdb
 * @email xulin@wdb007.com
 * @date 2018-01-20 15:11:02
 */
public class HdUserEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//
	private String id;
	//手机号
	private String mobile;
	//昵称
	private String nickname;
	//头像
	private String avatar;
	//小程序id
	private String wxAppid;
	//openid
	private String wxOpenid;
	//总览
	private Integer totalRead = 0;
	//周览
	private Integer weekRead = 0;
	//月览
	private Integer monthRead = 0;
	private Long apiUserId;
	//创建时间
	private Date createTime;
	
	private String unionid;
	
	private String sessionKey;
	
	private String userid;
	
	private int newUser;//是否新用户 0否 1是
	
	public int getNewUser() {
		return newUser;
	}
	public void setNewUser(int newUser) {
		this.newUser = newUser;
	}
	public Long getApiUserId() {
		return apiUserId;
	}
	public void setApiUserId(Long apiUserId) {
		this.apiUserId = apiUserId;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getSessionKey() {
		return sessionKey;
	}
	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey;
	}
	public String getUnionid() {
		return unionid;
	}
	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
	/**
	 * 设置：
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public String getId() {
		return id;
	}
	/**
	 * 设置：手机号
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	/**
	 * 获取：手机号
	 */
	public String getMobile() {
		return mobile;
	}
	/**
	 * 设置：昵称
	 */
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	/**
	 * 获取：昵称
	 */
	public String getNickname() {
		return nickname;
	}
	/**
	 * 设置：头像
	 */
	public void setAvatar(String avatar) {
		if(!avatar.contains("http")) {
			avatar = "https://img.wdb007.com"+avatar;
		}
		this.avatar = avatar;
	}
	/**
	 * 获取：头像
	 */
	public String getAvatar() {
		return avatar;
	}
	/**
	 * 设置：小程序id
	 */
	public void setWxAppid(String wxAppid) {
		this.wxAppid = wxAppid;
	}
	/**
	 * 获取：小程序id
	 */
	public String getWxAppid() {
		return wxAppid;
	}
	/**
	 * 设置：openid
	 */
	public void setWxOpenid(String wxOpenid) {
		this.wxOpenid = wxOpenid;
	}
	/**
	 * 获取：openid
	 */
	public String getWxOpenid() {
		return wxOpenid;
	}
	/**
	 * 设置：总览
	 */
	public void setTotalRead(Integer totalRead) {
		this.totalRead = totalRead;
	}
	/**
	 * 获取：总览
	 */
	public Integer getTotalRead() {
		return totalRead;
	}
	/**
	 * 设置：周览
	 */
	public void setWeekRead(Integer weekRead) {
		this.weekRead = weekRead;
	}
	/**
	 * 获取：周览
	 */
	public Integer getWeekRead() {
		return weekRead;
	}
	/**
	 * 设置：月览
	 */
	public void setMonthRead(Integer monthRead) {
		this.monthRead = monthRead;
	}
	/**
	 * 获取：月览
	 */
	public Integer getMonthRead() {
		return monthRead;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
}
